﻿using Microsoft.Phone.Controls;
using CDFWPUG.Helpers;
using GalaSoft.MvvmLight.Messaging;
using System;
using CDFWPUG.ViewModel;
using System.Windows;

namespace CDFWPUG.Views
{
    /// <summary>
    /// Description for pageAbout.
    /// </summary>
    public partial class pageAbout : PhoneApplicationPage
    {
        /// <summary>
        /// Initializes a new instance of the pageAbout class.
        /// </summary>
        public pageAbout()
        {
            InitializeComponent();
            Messenger.Default.Register<Uri>(this, "NavigationRequest", (uri) => NavigationService.Navigate(uri));
            Messenger.Default.Register<String>(this, "MessageBoxRequest", (message) => MessageBox.Show(message));
        }


        protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
        {
            base.OnNavigatedTo(e);
            listStarters.SelectedIndex = -1;
        }
    }
}